package com.xinhe.web.reposity;

import com.xinhe.web.entity.OrderPay;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface OrderPayRepository  extends JpaRepository<OrderPay, Long> {

    @Query(value = "select * from tb_order_pay where removed=0 and f_order_id=?1", nativeQuery = true)
    OrderPay findOneByOrderId(Long id);

}
